package cn.ycl.system.other.study.designMode.strategy;

/**
 * @author YuanChangLiang
 * @description 策略模式测试
 * @date created in 14:19 2021/6/2
 */


public class TravelStrategyTest {

    public static void main(String[] args) {
        //骑自行车去旅游（不需要判断）
        TravelContext travelContext = new TravelContext(new TravelByBikeStrategy());
        travelContext.context();
    }
}
